<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Categories_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-categories_id" data-rule="required" data-source="food/categories/index" class="form-control selectpage" name="row[categories_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Smallimage')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-smallimage" class="form-control" size="50" name="row[smallimage]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-smallimage" class="btn btn-danger faupload" data-input-id="c-smallimage" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-smallimage"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-smallimage" class="btn btn-primary fachoose" data-input-id="c-smallimage" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-smallimage"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-smallimage"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('First_category_code')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-first_category_code" data-rule="required" class="form-control" name="row[first_category_code]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Second_category_code')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-second_category_code" data-rule="required" class="form-control" name="row[second_category_code]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weight')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weight" class="form-control" step="0.01" name="row[weight]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Edible_portion')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-edible_portion" class="form-control" step="0.01" name="row[edible_portion]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Water_content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-water_content" class="form-control" step="0.01" name="row[water_content]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Energy_kilocalorie')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-energy_kilocalorie" class="form-control" step="0.01" name="row[energy_kilocalorie]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Energy_kj')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-energy_kj" class="form-control" step="0.01" name="row[energy_kj]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Protein')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-protein" class="form-control" step="0.01" name="row[protein]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Fat')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-fat" class="form-control" step="0.01" name="row[fat]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Carbohydrate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-carbohydrate" class="form-control" step="0.01" name="row[carbohydrate]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Dietary_fiber')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-dietary_fiber" class="form-control" step="0.01" name="row[dietary_fiber]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cholesterol')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-cholesterol" class="form-control" step="0.01" name="row[cholesterol]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ash')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-ash" class="form-control" step="0.01" name="row[ash]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Vitamin_a')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-vitamin_a" class="form-control" step="0.01" name="row[vitamin_a]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Thiamine')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-thiamine" class="form-control" step="0.01" name="row[thiamine]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Riboflavin')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-riboflavin" class="form-control" step="0.01" name="row[riboflavin]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Vitamin_b6')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-vitamin_b6" class="form-control" step="0.01" name="row[vitamin_b6]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Vitamin_b12')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-vitamin_b12" class="form-control" step="0.01" name="row[vitamin_b12]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Vitamin_d')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-vitamin_d" class="form-control" step="0.01" name="row[vitamin_d]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Vitamin_k')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-vitamin_k" class="form-control" step="0.01" name="row[vitamin_k]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Folic_acid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-folic_acid" class="form-control" step="0.01" name="row[folic_acid]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Nicotine')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-nicotine" class="form-control" step="0.01" name="row[nicotine]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Vitamin_c')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-vitamin_c" class="form-control" step="0.01" name="row[vitamin_c]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Vitamin_e')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-vitamin_e" class="form-control" step="0.01" name="row[vitamin_e]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Biotin')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-biotin" class="form-control" step="0.01" name="row[biotin]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Acid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-acid" class="form-control" step="0.01" name="row[acid]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Choline')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-choline" class="form-control" step="0.01" name="row[choline]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Calcium')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-calcium" class="form-control" step="0.01" name="row[calcium]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Phosphorus')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-phosphorus" class="form-control" step="0.01" name="row[phosphorus]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Potassium')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-potassium" class="form-control" step="0.01" name="row[potassium]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sodium')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sodium" class="form-control" step="0.01" name="row[sodium]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Magnesium')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-magnesium" class="form-control" step="0.01" name="row[magnesium]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Iron')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-iron" class="form-control" step="0.01" name="row[iron]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Zinc')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-zinc" class="form-control" step="0.01" name="row[zinc]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Selenium')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-selenium" class="form-control" step="0.01" name="row[selenium]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Copper')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-copper" class="form-control" step="0.01" name="row[copper]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Manganese')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-manganese" class="form-control" step="0.01" name="row[manganese]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Iodine')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-iodine" class="form-control" step="0.01" name="row[iodine]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Carotene')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-carotene" class="form-control" step="0.01" name="row[carotene]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Retinol')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-retinol" class="form-control" step="0.01" name="row[retinol]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Niacin')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-niacin" class="form-control" step="0.01" name="row[niacin]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Alpha_vitamin_e')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-alpha_vitamin_e" class="form-control" step="0.01" name="row[alpha_vitamin_e]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="30"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="0">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
